<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.org/ui"
      xmlns:f="http://java.sun.com/jsf/core">

<h:body>
    <h:form prependId="false" id="loginForm">
        <p:growl id="growl" showDetail="true" life="9000" />
        <p:messages />
        <h:panelGrid columns="2" style="margin-left: auto; margin-right: auto;" >
            <h:outputLabel value="Email" />
            <p:inputText value="#{loginBean.email}" label="email" required="true" id="j_username" />

            <h:outputLabel value="Password" />
            <p:inputText value="#{loginBean.password}" label="password" required="true" id="j_password"
                        requiredMessage="Password is required"/>

            <!--h:outputLabel for="remember_me" value="Remember me" class="inline" />
            <p:selectBooleanCheckbox id="remember_me" name="_spring_security_remember_me" /-->

            <f:facet name="footer">
                <p:commandButton id="loginButton" value="Sign in" update="growl" ajax="false"
                                 action="#{loginBean.loginAction}"
                                 oncomplete="handleLoginRequest(xhr, status, args)"/>
            </f:facet>
        </h:panelGrid>
    </h:form>
</h:body>
</html>